package 作业.zuoye5;

import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        huiyuan s=new huiyuan();
        for (;;){
            System.out.println("请输入用户名");
            s.name2=input.next();
            System.out.println("请输入密码");
            s.mina2=input.nextInt();
            if(s.name2.equals(s.name)&&s.mina2==s.mima){
                System.out.println("权限更新；从键盘获取新的密码，进行更新");
                System.out.println("请输入新用户名");
                s.name2=input.next();
                System.out.println("请输入新密码");
                s.mina2=input.nextInt();
                s.show();
                break;
            }else {
                System.out.println("密码或用户名不对");
                continue;
            }
        }

    }
}
